{ ***  cef_callback_capi.h  *** }

  PCefCallback = ^TCefCallback;
  PCefCompletionCallback = ^TCefCompletionCallback;

  // Generic callback structure used for asynchronous continuation.
  TCefCallback = record
    // Base structure.
    base: TCefBase;

    // Continue processing.
    cont: procedure(self: PCefCallback); cconv;

    // Cancel processing.
    cancel: procedure(self: PCefCallback); cconv;
  end;


  // Generic callback structure used for asynchronous completion.
  TCefCompletionCallback = record
    // Base structure.
    base: TCefBase;

    // Method that will be called once the task is complete.
    on_complete: procedure(self: PCefCompletionCallback); cconv;
  end;


